<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> 工作报告列表  <{$smarty.const.WEB_NAME}></title>
	<link rel="stylesheet" type="text/css" href="./skin/<{$smarty.const.TPL_NAME}>/style.css" />
	<script type="text/javascript" src="./skin/<{$smarty.const.TPL_NAME}>/comm.js"></script> 
	<{if $smarty.session.type > 0}>
	<script type="text/javascript" src="./skin/<{$smarty.const.TPL_NAME}>/calendar.js"></script> <!-- 这个在火狐下不兼容 -->
	<{/if}>
	<style type="text/css">
	  <!--
	     .tableList {
		  margin-left:1px; *margin-left:0; _margin-left:0;
		 }	
	  //-->
	</style>
	
</head>
 <body>
	<table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" class="tableList tip_bug">
	  <tr> 
		<th class="h2"><a href="?q=wordSummaryList">工作报告</a></th>
		<td width="200" align="center">
		查看方式 
		<a href="index.php?q=wordSummaryList&browsing=1" class="word_list" title="不显示工作内容">&nbsp;&nbsp;&nbsp;&nbsp;</a>
		<a href="index.php?q=wordSummaryList&browsing=0" class="word_title"  title="显示全部内容">&nbsp;&nbsp;&nbsp;&nbsp;</a>
		</td>
		<th width="200"><a href="?q=viewWordSummary">添加工作报告</a></th>
	  </tr>
	</table>




 <{section name=list loop=$dataList}>
    <div class="wordBox">
       <div class="tit">
	     <table width="80%" border="0" cellspacing="0" cellpadding="0">
	       <tr>
		     <td class="word_none" onclick="wordNone(this , 'list_<{$dataList[list].id}>')" title="收起/展开"></td>
		   <{if $smarty.session.type != 0}>
	         <td class="b" style="width:40px">选择:</td>
			 <td class="con" style="width:30px"><input type="checkbox" onclick="Shopping(this)" value="<{$dataList[list].id}>"  <{if $dataList[list].shopping == 1}>checked<{/if}> /></td>
           <{else}>
             <td class="b">编号:</td>
			 <td class="con"><{$dataList[list].id}></td>
		   <{/if}>
			 <td class="b">姓名:</td>
			 <td class="con">
		   <{if $smarty.session.type > 0}>
		      <a href="index.php?q=wordSummaryList&browsing=<{$smarty.get.browsing}>&userId=<{$dataList[list].userId}>"> <{$dataList[list].name}></a>
		   <{else}>
		       <{$dataList[list].name}>
		   <{/if}>
			 </td>
			 <td class="b"><b>部门:</td>
			 <td class="con">
		   <{if $smarty.session.type > 0}>
		       <a href="?q=wordSummaryList&browsing=<{$smarty.get.browsing}>&departmentId=<{$dataList[list].departmentId}>"><{$dataList[list].department}></a>
		   <{else}>
				<{$dataList[list].department}>
		   <{/if}>			
			 </td>
			 <td class="b"><b>时间:</td>
			 <td class="con">
		    <{if $smarty.session.type > 0}>
			   <a href="?q=wordSummaryList&browsing=<{$smarty.get.browsing}>&date=<{$dataList[list].recordTime}>"><{$dataList[list].recordTime}></a>
			<{else}>
			   <{$dataList[list].recordTime}>
			<{/if}>
			 </td>
	       </tr>
	     </table>
	   </div>
	   <div class="<{$cssClass}>" id="list_<{$dataList[list].id}>">
	      <div class="title">本周工作报告</div>
		  <div class="text"><{$dataList[list].summary}></div>
	      <div class="title">下周工作报告</div>
		  <div class="text"><{$dataList[list].plan}></div>
       </div>
	</div>

 <{/section}>
         <{if $smarty.section.list.total == 0}>
         
		<table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" class="tableList tip_bug">
		<tr class="noBlod">		
		 <th>
		   该条件下找不到数据
		 </th>
		</tr>
		</table>
		 <{/if}>
	 	  <table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" class="tableList" >
			<tr class="dedaultPage" style="line-height:30px; height:30px;" >
			  <td align="center">
				<{$pageInfo}>

			   <{if $smarty.session.purview == 1 }>
				  &nbsp;
				<input type="text" id="dateInput" value="<{$date}>" class="dateInput" name="date" onclick="MyCalendar.SetDate(this)" /> 
				<input type="button" value="确定" onclick="dateLocation(<{$smarty.get.browsing}>)" class="sub_btn" />
				<{/if}>
				 <{if $smarty.session.type != 0}>
				   <{if $smarty.session.type == 2}><{assign var="title" value="超管提示：导出最近7天全部的员工" }><{else}><{assign var="title" value="主管提示 导出最近7天的部门下的所有员工的工作报告" }><{/if}>
				<input type="button" value="导出本周" onclick="dorefresh.location.href='emport.php?type=0&export=2'" title="<{$title}>" class="sub_btn" />
				<input type="button" value="导出选中" onclick="dorefresh.location.href='emport.php?type=0&export=1'" class="sub_btn" />
				  <{/if}>

			  </td>
			</tr>
		  </table>



<iframe id="dorefresh" src="" height="0" width="0" style='margin:0; display:none'></iframe>


 </body>
</html>
